package com.softtown.modules.sys.dto;

import com.softtown.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @version v1.0
 * @ProjectName: softtown-aioffice
 * @ClassName: SysUserMobileDTO
 * @Description: 用户解绑手机DTO
 * @Author: fuming
 * @Date: 2019/7/10 16:50
 */
@Data
@ApiModel(value = "用户手机号")
public class SysUserMobileDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @NotNull(message="{id.require}", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty(value = "新手机号")
    @NotBlank(message="{sysuser.newmobile.require}", groups = UpdateGroup.class)
    private String newMobile;

    @ApiModelProperty(value = "新验证码")
    @NotBlank(message="{sysuser.newsmscode.require}", groups = UpdateGroup.class)
    private String newSmsCode;

    @ApiModelProperty(value = "更新者ID")
    private Long updater;
}
